import React,{Component} from 'react';
import { Route, Link} from 'react-router-dom';

import Info from './Info';
import Main from './Main';

class User extends Component {
    constructor(props) {
        super(props);
        this.state = {  };
    }
    render() {
        return (
            <div className="tab01">
                <div className="content">
                    <div className="left">
                        <Link to="/user/">用户信息</Link>
                        <br/>
                        <Link to="/user/main">个人中心</Link>
                    </div>
                    <div className="right">
                        <Route exact path="/user/" component={Info}/>
                        <Route path="/user/main" component={Main}/>
                    </div>
                </div>
            </div>
        );
    }
}

export default User;